package com.ggh;

import com.ggh.config.CreateAllRoomConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import java.util.Date;

/**
 * @author jj
 * @date 2019/10/12 12:14
 */
// 开启事务支持
@Slf4j
@EnableTransactionManagement
@SpringBootApplication
public class app {
    public static void main(String[] args) {
            SpringApplication springApplication = new SpringApplication(app.class);
            ConfigurableApplicationContext run = springApplication.run(args);
                /*创建房间*/
            CreateAllRoomConfig createAllRoomConfig=new CreateAllRoomConfig();
                createAllRoomConfig.createAllRoom();
    }
}
